package wxuser

import (
	"encoding/json"
	"gitee.com/ifinder/wechat-ipad-sdk-golang/base"
)

// Style == 二维码样式(请自行探索) 8默认
type UserQrReq struct {
    Style int `json:"Style"`
    WxId string `json:"Wxid"`
}

type UserQrResp struct {
	base.WechatResponse
	Data UserQrData `json:"Data"`
}
type UserQrData struct {
	BaseResponse base.BaseResponse
	Qrcode Qrcode `json:"qrcode"`
}
type Qrcode struct {
	ILen int `json:"iLen"`
	Buffer string `json:"buffer"`
}

func (this *UserQrResp) FromJson(data []byte) error {
	return json.Unmarshal(data,this)
}

